
Understand how Docker uses from and run to create lightweight containers, build Ubuntu-based images with a Dockerfile, install packages in a single layer, and run containers to isolate dependencies.
Discover how the CMD instruction in Docker triggers commands when a container starts. Build an Ubuntu image, set CMD to echo a message, and chain commands with semicolons.
Discover how the docker add command extracts archives and downloads files into a base image, and learn best practices to prefer wget and run over add for downloads.
Learn to set a default working directory in a docker image with the workdir directive, so commands run in a chosen folder by default. Adjust the start directory as needed.
Learn how the entrypoint runs commands when a container starts and how it differs from cmd. Override cmd while the entrypoint stays fixed, using startup tasks that users cannot change.
Learn to set environment variables in a docker image with ENV, define a working directory with WORKDIR, and verify them during an interactive container run using the dollar symbol.
Learn to implement a docker health check that runs every five seconds with a three-second timeout, includes retries, and exits the container when unhealthy.
Learn how docker stop signals control container shutdown by setting and sending a custom stop signal like SIGKILL instead of the default SIGTERM, using docker stop.
Learn how to achieve persistent storage in docker containers using volumes, share data between containers, and reuse data from one container in another.
Learn how to mount a volume to share files between the host and container, using Docker run -v host_path:container_path to reflect changes in both environments.
Learn to expose a container port to the host with docker, map internal port 5000 to external port 80, and run a flask app inside the container.
Understand docker container networking by creating a private subnet with CIDR notation, such as 172.28.0.0/16, to enable container-to-container and host-to-container communication.
Assign IP addresses to Docker containers on a bridged network, verify inside with ifconfig, ping from the host, and map hosts in /etc/hosts for seamless container communication.
Learn how two Docker containers on a custom network communicate with IPs 172.28.0.10 and 172.28.0.11, using ping to verify. Explore microservices isolation, API communication, scaling, and software shipping across hosts.
This course on Docker hands on for beginners will help the audience to kick start their learning of Docker containers. The course will introduce to different concepts of Docker that includes usage of different concepts, keywords, commands and best practices. Keeping this as the basics, one can go ahead and develop containerized applications and build super cool software & services.